package com.scx.threadPool;


import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.session.Configuration;
import org.apache.log4j.Logger;

import com.scx.engine.SqlProcessor;

/**
 * 
 * ParseThread  
 * <p>查询同步生成文档或者生成。</p> 
 * @author sunChangXing
 * @version v1.0.0
 * <p><B>last update </B> by sunChangXing @ 2018年1月9日</p>
 * @since v1.0.0
 */
public class ParseThread implements Runnable {
    private final static Logger logger = Logger.getLogger(ParseThread.class);

    private Configuration configuration;
    private BoundSql boundSql;
    
    public ParseThread(Configuration configuration, BoundSql boundSql) {
    	this.configuration = configuration;
    	this.boundSql = boundSql;
    }
    
    @Override
    public void run() {
    	new SqlProcessor().analysis(configuration, boundSql);
    }

}
